package net.stock.db;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Persistent;
import java.util.Date;

/**
 * @author naim
 * @date Dec 27, 2009
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserAccess {
    
    @PrimaryKey
    @Persistent
    private String email;

    private Date date;

    @Persistent
    private boolean hasAccess;

    public UserAccess(String email, Date date, boolean hasAccess) {
        this.email = email;
        this.date = date;
        this.hasAccess = hasAccess;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public boolean isHasAccess() {
        return hasAccess;
    }

    public void setHasAccess(boolean hasAccess) {
        this.hasAccess = hasAccess;
    }
}
